/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.thienloc.omap.entity.report;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author GiangLT
 */
@Entity
@Table(name = "RECONCILE_REPORT", catalog = "", schema = "THIENLOC")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "ReconcileReport.findAll", query = "SELECT r FROM ReconcileReport r"),
    @NamedQuery(name = "ReconcileReport.findByProvider", query = "SELECT r FROM ReconcileReport r WHERE r.provider = :provider"),
    @NamedQuery(name = "ReconcileReport.findBySc6071", query = "SELECT r FROM ReconcileReport r WHERE r.sc6071 = :sc6071"),
    @NamedQuery(name = "ReconcileReport.findBySc6171", query = "SELECT r FROM ReconcileReport r WHERE r.sc6171 = :sc6171"),
    @NamedQuery(name = "ReconcileReport.findBySc6271", query = "SELECT r FROM ReconcileReport r WHERE r.sc6271 = :sc6271"),
    @NamedQuery(name = "ReconcileReport.findBySc6371", query = "SELECT r FROM ReconcileReport r WHERE r.sc6371 = :sc6371"),
    @NamedQuery(name = "ReconcileReport.findBySc6471", query = "SELECT r FROM ReconcileReport r WHERE r.sc6471 = :sc6471"),
    @NamedQuery(name = "ReconcileReport.findBySc6571", query = "SELECT r FROM ReconcileReport r WHERE r.sc6571 = :sc6571"),
    @NamedQuery(name = "ReconcileReport.findBySc6671", query = "SELECT r FROM ReconcileReport r WHERE r.sc6671 = :sc6671"),
    @NamedQuery(name = "ReconcileReport.findBySc6771", query = "SELECT r FROM ReconcileReport r WHERE r.sc6771 = :sc6771")})
public class ReconcileReport implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 20)
    @Column(name = "PROVIDER")
    private String provider;
    @Column(name = "SC6071")
    private Integer sc6071;
    @Column(name = "SC6171")
    private Integer sc6171;
    @Column(name = "SC6271")
    private Integer sc6271;
    @Column(name = "SC6371")
    private Integer sc6371;
    @Column(name = "SC6471")
    private Integer sc6471;
    @Column(name = "SC6571")
    private Integer sc6571;
    @Column(name = "SC6671")
    private Integer sc6671;
    @Column(name = "SC6771")
    private Integer sc6771;

    public ReconcileReport() {
    }

    public ReconcileReport(String provider) {
        this.provider = provider;
    }

    public String getProvider() {
        return provider;
    }

    public void setProvider(String provider) {
        this.provider = provider;
    }

    public Integer getSc6071() {
        return sc6071;
    }

    public void setSc6071(Integer sc6071) {
        this.sc6071 = sc6071;
    }

    public Integer getSc6171() {
        return sc6171;
    }

    public void setSc6171(Integer sc6171) {
        this.sc6171 = sc6171;
    }

    public Integer getSc6271() {
        return sc6271;
    }

    public void setSc6271(Integer sc6271) {
        this.sc6271 = sc6271;
    }

    public Integer getSc6371() {
        return sc6371;
    }

    public void setSc6371(Integer sc6371) {
        this.sc6371 = sc6371;
    }

    public Integer getSc6471() {
        return sc6471;
    }

    public void setSc6471(Integer sc6471) {
        this.sc6471 = sc6471;
    }

    public Integer getSc6571() {
        return sc6571;
    }

    public void setSc6571(Integer sc6571) {
        this.sc6571 = sc6571;
    }

    public Integer getSc6671() {
        return sc6671;
    }

    public void setSc6671(Integer sc6671) {
        this.sc6671 = sc6671;
    }

    public Integer getSc6771() {
        return sc6771;
    }

    public void setSc6771(Integer sc6771) {
        this.sc6771 = sc6771;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (provider != null ? provider.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ReconcileReport)) {
            return false;
        }
        ReconcileReport other = (ReconcileReport) object;
        if ((this.provider == null && other.provider != null) || (this.provider != null && !this.provider.equals(other.provider))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.thienloc.omap.entity.report.ReconcileReport[ provider=" + provider + " ]";
    }
    
}
